package com.my.bo.impl;

import java.math.BigInteger;
import java.util.List;

import com.my.bean.Part;
import com.my.bo.PartBo;

public class PartBoImpl extends BaseBo implements PartBo {

	@Override
	public boolean addPart(Part part) throws Exception {
		return partdao.addPart(part);
	}

	@Override
	public boolean editPart(Part part) throws Exception {
		return partdao.editPart(part);
	}

	@Override
	public Part getPartById(Class<Part> c, Integer id) throws Exception {
		return partdao.getPartById(c, id);
	}

	@Override
	public boolean removePart(Integer id) throws Exception {
		return partdao.removePart(id);
	}

	@Override
	public BigInteger getTotalPartRecords() throws Exception {
		return partdao.getTotalPartRecords();
	}

	@Override
	public List<Part> getAllPartByPage(int pageindex, int pagesize)
			throws Exception {
		return partdao.getAllPartByPage(pageindex, pagesize);
	}

	@Override
	public BigInteger searchTotalPartRecords(Part part) throws Exception {
		return partdao.searchTotalPartRecords(part);
	}

	@Override
	public List<Part> searchPartByPage(int pageindex, int pagesize, Part part)
			throws Exception {
		return partdao.searchPartByPage(pageindex, pagesize, part);
	}

	@Override
	public boolean isExist(String name) {
		return partdao.isExist(name);
	}

	/***************************************** address ***************************************************************************/

}
